package com.lsh.oms.core.dao.other;

import com.lsh.oms.core.dao.MyBatisRepository;
import com.lsh.oms.core.model.order.OrderShippingDetail;
import com.lsh.oms.core.model.order.OrderSignDetail;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * @author peter
 */
@MyBatisRepository
public interface OrderShippingDetailMapper {

    int deleteByPrimaryKey(Long id);

    int insert(OrderShippingDetail record);

    int insertSelective(OrderShippingDetail record);

    OrderShippingDetail selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(OrderShippingDetail record);

    int updateByPrimaryKey(OrderShippingDetail record);

    List<OrderShippingDetail> selectByShippingOrderId(Long orderId);

    List<OrderShippingDetail> findDetailList(@Param("shipping_order_ids") Collection<Long> shippingOrderIds);

    int updateByTmsId(OrderShippingDetail record);

   	void saveBatch(List<OrderShippingDetail> details);

   	List<Map<String, Object>> findDetailsByShippingOrderId(@Param("shipping_order_id") Long shippingOrderId);
}